﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="customerlist.aspx.cs" Inherits="Ecreate.Web.systemanage.customer.customerlist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
        <link rel="stylesheet" type="text/css" href="/content/css/crud/stylecrud.css"/>  
        <link rel="stylesheet" type="text/css" href="/content/css/crud/gridview.css"/>             
</head>
<body>
    <form id="form1" runat="server">
   <div id="gridparent" class="gridparent">
            <div id="navigator" class="navigator" >
                <asp:Label ID="lbl_areaname" runat="server" Text=""></asp:Label>
                <br />
                <asp:HyperLink ID="hl_addcustomer" runat="server">添加销售商</asp:HyperLink>
                <!--a href="/systemanage/customer/customercrud.aspx?action=insert&areacode=<%=this.Request.QueryString["areacode"] %>">添加销售商</a>
                <!--a href="updpassword.aspx" target="client">修改密码</a-->
               
            </div>
            <div>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    Height="85px"  AllowPaging="True" 
                    onpageindexchanging="GridView1_PageIndexChanging" 
                    HorizontalAlign="Center"  CssClass="GridViewStyle" 
                    EmptyDataText="<table><tr><td>无数据</td></tr></table>" BorderStyle="None">
                    <Columns>
                        <asp:BoundField DataField="cus_id" HeaderText="销售商编码"> 
                            <HeaderStyle Width="100px"  />
                        </asp:BoundField>
                        <asp:BoundField DataField="cus_name" HeaderText="销售商名称" >
                            <HeaderStyle Width="100px"  />
                        </asp:BoundField>
                        <asp:BoundField DataField="password" HeaderText="密码" DataFormatString="********">
                             <HeaderStyle Width="100px"  />                        
                        </asp:BoundField>                              
                        <asp:BoundField DataField="cus_address" HeaderText="销售商地址">
                             <HeaderStyle Width="100px"  />                        
                        </asp:BoundField>      
                        <asp:BoundField DataField="cus_tel" HeaderText="联系电话">
                             <HeaderStyle Width="100px"  />                        
                        </asp:BoundField>  
                        <asp:BoundField DataField="cus_linkman" HeaderText="联系人">
                             <HeaderStyle Width="100px"  />                        
                        </asp:BoundField>        
                        <asp:BoundField DataField="cus_account" HeaderText="账号">
                             <HeaderStyle Width="100px"  />                        
                        </asp:BoundField>                           
                        <asp:BoundField DataField="createdate" HeaderText="创建日期">
                             <HeaderStyle Width="100px"  />                        
                        </asp:BoundField>                           
                                                                          
                        <asp:HyperLinkField HeaderText="" DataNavigateUrlFields="cus_id,areacode" 
                            DataNavigateUrlFormatString="/systemanage/customer/customercrud.aspx?action=edit&amp;id={0}&amp;areacode={1}" 
                            DataTextField="cus_id" 
                            DataTextFormatString="<font color='red'>修改</font>" />
                     </Columns>
                    <FooterStyle CssClass="GridViewFooterStyle" />
                    <RowStyle CssClass="GridViewRowStyle" />   
                    <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                    <PagerStyle CssClass="GridViewPagerStyle" />
                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                </asp:GridView>
            </div>

    </div>
    <input id="hid_areacode"   type="hidden" runat="server" />
    <input id="hid_action" type="hidden" runat="server" />    
    </form>
    </body>
</html>
